/**
 * 
 * @author Devin Wolanick
 * @Version 1.0
 * 
 * Hi-Lo Counting System
 */
public class HiLoSystem implements CountingSystem{
	
	/**
	 * Variables
	 */
	private int cardCount = 0;
	
	/**
	 * Takes Card
	 */
	public void takeCard(Card aCard) {
		if (aCard.getNumber()>1 && aCard.getNumber()<7)
			cardCount++;
		else if (aCard.getNumber()>9 || aCard.getNumber() == 1)
			cardCount--;
	}
	
	/**
	 * Resets count
	 */
	public void resetCount() {
		cardCount = 0;
	}
	
	/**
	 * Returns count
	 * @return cardCount
	 */
	public int getCount() {
		return cardCount;
	}
}
